from yycuter import cut

data = ["将客厅的空调打开"]

tokens = cut(data)

from yydepp2 import depp

# from gensim.models import FastText
# import torch
# from torch import nn

# wmodel = FastText.load_fasttext_format("data/word_vectors.bin")
# embedding_dim = wmodel.wv.vectors.shape[1]
# word_emb = nn.Embedding.from_pretrained(torch.FloatTensor(wmodel.wv.vectors), freeze=True)
# print(word_emb.state_dict())
# w_emb = word_emb(torch.LongTensor([[ 36, 220,   4,  32,  49]]))
# print(w_emb)

for line in tokens:
    print(depp(line))
